package com.team7.home.controller.apiController;


import com.team7.common.vo.CommonResult;
import com.team7.home.service.ZoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/qian/zone")
public class ApiZoneController {

    @Autowired
    private ZoneService zoneService;

    @GetMapping("getAllQianZone")
    public CommonResult getAllQianZone(){
        return zoneService.getAllQianZone();
    }

    @GetMapping("getAllQianMenu")
    public CommonResult getAllQianMenu(){

      return  zoneService.getAllQianMenu();
    }
}
